/*function getAdver(code) { 
    head.js(        
        "http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js",
        function() {
            $.getJSON("/ajax/json", {code: code}, 
                function(data) {          
                  count = data.test.length;  
                  i = 0;
                  rand = parseInt(Math.random() * (count - 0) + 0);          
                  frame = '<div><a href="contextca.com"><iframe src="'+data.test[rand].href+'" width="'+data.test[rand].width+'" height="'+data.test[rand].height+'"></iframe></a>   </div>';
                  $('#div_banner_id').append(frame);
                     interval = setInterval(function() {
                             if (i < count) {
                                 $('#div_banner_id').html('');
                                 frame = '<iframe src="'+data.test[i].href+'" width="'+data.test[i].width+'" height="'+data.test[i].height+'"></iframe>';
                                 $('#div_banner_id').html(frame);
                                 i++;                         
                             } else {                         
                                 i = 0;
                             }
                         },         
                      3000);          
                }
            )
        });                             
} */
function getAdver(code){head.js("http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js",function(){$.getJSON("/ajax/json/",{code:code},function(data){count=data.test.length;i=0;rand=parseInt(Math.random()*(count-0)+0);frame='<div><a href="contextca.com"><iframe src="'+data.test[rand].href+'" scrolling="no" width="'+data.test[rand].width+'" height="'+data.test[rand].height+'"></iframe></a>   </div>';$("#div_banner_id").append(frame);interval=setInterval(function(){if(i<count){$("#div_banner_id").html("");
frame='<iframe src="'+data.test[i].href+'" width="'+data.test[i].width+'"scrolling="no" height="'+data.test[i].height+'"></iframe>';$("#div_banner_id").html(frame);i++}else i=0},3E3)})})};